package org.example.pojo;

/**
 * ClassName: OrderBean
 * Package: org.example.mybatis.pojo
 * Description:
 *
 * @Author wanghao
 * @Create 2024-06-28 20:45
 * @Version 1.0
 */
public class OrderBean {

    private Integer id;
    private String orderName;

    // 对一关联
    private Customer customer;

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }


    @Override
    public String toString() {
        return "OrderBean{" +
                "id=" + id +
                ", orderName='" + orderName + '\'' +
                ", customer=" + customer +
                '}';
    }
}
